BackupManager

public class BackupManager extends AbstractManager<Service>

EsperBackupManager allows backup/restore applications on your device.

While restoring backups, users needs to take care of version compatibilities.

Currently, only single-user backing up of data is supported. In multi-user configuration, the application may not be backed up and restored at all. OOB/Temporary files are not backed up with current configuration. Cache is cleared once a backup is performed to avoid potential issues after backing up your application. Applications with allowBackup=false might fail to backup all the data to correctly function. If your application has allowBackup=false, do not backup with these APIs. Instead provide your own backup/restore mechanism like using key-value pair or using your own Cloud mechanism.

Functions

Link copied to clipboard
public void deleteBackup(String packageName, String backupName)
Delete backup present from the system to free storage.
Link copied to clipboard
Get list of all backups currently present on the system for an application.
Link copied to clipboard
Get list of all packages that are currently backed up.
Link copied to clipboard
public static BackupManager getInstance(Context context)
Get instance of Esper's BackupManager.
Link copied to clipboard
public void restoreBackup(String packageName, String backupName)
Restore backup of an application.
Link copied to clipboard
public void takeBackup(String packageName)
Take backup of an application.